package com.heifeng.cloudshelf.mvp.search.contract;

import androidx.recyclerview.widget.RecyclerView;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.heifeng.cloudshelf.base.IBasePresenter;
import com.heifeng.cloudshelf.base.IBaseView;
import com.heifeng.cloudshelf.dao.SearchDefaultBean;

import java.util.List;

/**
 * Created by admin on 2019/9/16.
 */

public class SearchHomeActivityContract {
    public interface View extends IBaseView {
        RecyclerView getRecyclerView();

        void onStartAnim();

        LinearLayout getLBack();

        void setTvSearchText(String string);

        ImageView getIvSearch();

        void setListSize(int count);

        void showNoDatas(boolean isShow);

        void noSreachData(List<SearchDefaultBean> data);

        void locationError();

        void closeActicity();

        void getLocationSuccess();
    }

    public interface Presenter extends IBasePresenter<View> {
        void init();

        boolean isSearchView();

        void setIsSearchView(boolean flag);

        void toSearchCommunityList(String address);

        boolean isVisBottom(RecyclerView recyclerView);

        void nextPage(String address);

        void gdLocation();

        void ShowAllowLocationDialog();

        void ShowLocationFaildDialog();

        void ShowLocationUnableDialog();

        void setPageIndex(int pageIndex);
    }
}
